﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program04
{
    class Program
    {
        static void Main(string[] args)
        {
            int num1 = 0;
            //int num2 = 0;
            int num3 = 0;
            bool res1;
            bool res2;

            //逻辑运算
            //&和&&只要有一个为假全为假
            res1 = num1 > 0 & num1++ > 1;
            //num1=1；
            Console.WriteLine(res1);

            res2 = num1 > 0 && num3++ > 1;
            //num3=0；
            Console.WriteLine(num3);
            Console.ReadLine();
        }
    }
}
